package com.project.service;

import com.project.entity.JobApply;

import java.util.List;


/**
 * 应聘表相关服务
 */
public interface JobApplyService {
    /**
     * author: WheelChen
     * date: 2017/9/4
     * function: 添加一条应聘记录
     *
     * @param jobApply
     * @return
     */
    int addOne(JobApply jobApply);

    /**
     * author: WheelChen
     * date: 2017/9/4
     * function: 根据id删除一条应聘记录
     *
     * @param id
     * @return
     */
    int removeOneById(Integer id);

    /**
     * author: WheelChen
     * date: 2017/9/4
     * function: 根据id修改一条应聘记录
     *
     * @param jobApply
     * @return
     */
    int modifyOneById(JobApply jobApply);

    /**
     * author: WheelChen
     * date: 2017/9/5
     * function: 根据id查找应聘表
     *
     * @param id
     * @return
     */
    JobApply findOneById(Integer id);

    /**
     * author: WheelChen
     * date: 2017/9/9
     * function: 根据应聘表模糊条件查找
     *
     * @param jobApply
     * @return
     */
    List<JobApply> findByCondition(JobApply jobApply);

    /**
     * author: WheelChen
     * date: 2017/9/19
     * function: 根据学生信息表idList批量删除
     *
     * @param studentInfoIdList
     * @return
     */
    int removeBatchByStudentInfoIdList(List studentInfoIdList);

}
